<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>微信公众号文章封面图解析下载</title>
  <meta name="Keywords" content="微信公众号文章封面图下载,微信公众号文章封面图解析,如何下载微信公众号文章封面图,怎么下载微信公众号文章封面图" />
  <meta name="Description" content="微信公众号文章封面图下载,微信公众号文章封面图解析" />
  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">
  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>
  <link rel="icon" type="image/png" href="{{static_url('sub/images/favicon_wechat.png')}}">
  <link rel="stylesheet" href="http://cdn.amazeui.org/amazeui/2.7.2/css/amazeui.min.css">
</head>
<body>
	<div class="am-container">
		<header class="am-topbar">
		  <h1 class="am-topbar-brand">
			<a href="/" target="_blank">溜翻网</a>
		  </h1>
		</header>
		<div class="am-container" style="margin:40px 0px;">
			<img src="{{static_url('sub/images/logo_wechat.png')}}" class="img am-center">
		</div>
		<div class="am-form am-form-horizontal">
			<div class="am-form-group">
				<div class="am-u-sm-10">
					<input type="email" class="qing-input" placeholder="输入文章地址，如 http://mp.weixin.qq.com/s/******">
				</div>
				<div class="am-u-sm-2">
					<button class="am-btn am-btn-primary qing-download">获取封面图文</button>
				</div>
			</div>
		</div>
		<div class="am-alert am-alert-danger" style="display:none;">
			<p>error message</p>
		</div>
		<div class="qing-ads">
		</div>
		<div class="am-panel am-panel-default" id="qing-content">
		  <div class="am-panel-hd">
			<h3 class="am-panel-title qing-title">微信公众号文章标题</h3>
		  </div>
		  <div class="am-panel-bd">
			<div>
				<img src="https://res.wx.qq.com/mpres/en_US/htmledition/modules/weui-desktopSkin/svg/buildless/bg_logo_primary3e4a33.svg" alt="头像" class="am-fl am-circle am-img-thumbnail qing-header" style="width:42px;">
				&nbsp;
				<label class="am-vertical-align-middle qing-nickname">昵称</label>
				<label class="am-fr qing-ct">发布时间</label>
			</div>
			<hr/>
			<div class="qing-img ">
				<img src="https://res.wx.qq.com/mpres/zh_CN/htmledition/pages/login/loginpage/images/bg_banner3c96b5.png" alt="微信公众号文章封面图" class="am-img-responsive am-center">
			</div>
			<hr/>
			<p class="qing-desc">微信公众号文章描述</p>
		  </div>
		  <div class="am-panel-footer">
			  &nbsp;
		  </div>
		</div>
		<div class="am-panel am-panel-default">
				<div class="am-panel-hd">版权声明</div>
				<div class="am-panel-bd">
				文章解析后，在图片上点击右键，另存为。 内容归原公众账号上传者所有，本站不负任何法律责任
				</div>
		</div>
		<section data-am-widget="footer" class="am-footer am-footer-default">
			<div class="am-footer-switch">
				<a href="https://mp.weixin.qq.com"  class="am-footer-desktop"  target="_blank" rel="noreferrer">微信公众号</a>
				<span class="am-footer-divider">|</span>
				<a class="am-footer-desktop" rel="noreferrer"  target="_blank" href="https://wx.qq.com/">微信网页版</a>
			</div>
		</section>
		{% include '../public/footer.html' %}
	</div>
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="http://cdn.amazeui.org/amazeui/2.7.2/js/amazeui.min.js"></script>
<script type="text/javascript">
$(function(){
	function errorMsg(data){
		$('.am-alert').hide();
		$('.am-alert p').html(data.msg);
		$('.am-alert').show();
	}
	function okMsg(data){
		$('#qing-content .qing-title').html(data.title);
		$('#qing-content .qing-header').attr('src',data.head_url);
		$('#qing-content .qing-nickname').html(data.nickname);
		$('#qing-content .qing-ct').html(data.ct);
		$('#qing-content .qing-desc').html(data.desc);
		var imgA = '<a href="'+data.cdn_url+'" rel="noreferrer" target="_blank" class="am-btn am-btn-primary am-btn-block">点击此处打开图片</a>';
		$('#qing-content .qing-img').html(imgA);
	}
	$(".qing-download").click(function(){
		var urlContent = $('.qing-input').val();
		$.getJSON('/wechat_content',{key:'1234',url:urlContent}, function(data){
			if(data.code == 200){
				$('.am-alert').hide();
				okMsg(data.data);
			}else{
				errorMsg(data);
			}
		});
	});
});
</script>
</body>
</html>